<?php
/**
 * @filesource:					GraveyardModel.class.php
 * @desc:						墓地模型类
 *
 * @author:						zhangzhao
 * @copyright:					zhangzhao@huigeyuan.com
 * @date:						2011-04-19
 */

class GraveyardModel extends Model{
	protected $_map = array(
	);

	protected $_validate = array(
		array('name','require', '墓地名不能为空！'),
        array('type_id','require', '请选择墓型！')
		);

	protected $_auto = array(
		array('state_id', 2),//自动填充墓地状态为未验收
		array('accept_date','time',Model:: MODEL_BOTH,'function') // 对create_time字段在更新的时候写入当前时间戳
	);
	
}

?>